package com.example.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.education.Bean.RecommendInfo;
import com.example.education.Bean.StudentInfo;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 姚
 * @since 2023-03-27
 */

@Service
public interface StudentInfoService extends IService<StudentInfo> {

    int insert(StudentInfo studentInfo);

    //删
    int delete(@PathVariable Integer uid);

    //改
    int update(StudentInfo studentInfo);

    //根据uid查询
    StudentInfo select(Integer uid);

    //查
    StudentInfo select(String username);

    //注册
    int register(StudentInfo studentInfo);

    //登录
    int login(StudentInfo studentInfo);

    //个人评分
    Integer grade(StudentInfo studentInfo, RecommendInfo recommendInfo);

}
